package com.twu.biblioteca;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: dbelsey
 * Date: 31/01/13
 * Time: 12:18
 */
public class LibraryInventory {
    private static BookLibraryCollection bookLibrary;
    private static MovieLibraryCollection movieLibrary;

    public LibraryInventory(){
        bookLibrary = new BookLibraryCollection();
        bookLibrary.populateLibrary();
        movieLibrary = new MovieLibraryCollection();
        movieLibrary.populateLibrary();
    }

    public boolean reserveBook(int selectedBookNumber) throws InvalidLibraryItemNumberException{
        return bookLibrary.reserveBook(selectedBookNumber);
    }

    public String viewMovieList() {
        return movieLibrary.getLibraryContentsToString();
    }

    public String viewBookList(){
        return bookLibrary.getLibraryContentsToString();
    }

    public BookLibraryCollection getBookCollection(){
        return bookLibrary;
    }

    public MovieLibraryCollection getMovieCollection(){
        return movieLibrary;
    }
}